# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=libva-utils
pkgver=2.15.0
pkgrel=0
pkgdesc="Intel VA-API Media Applications and Scripts for libva"
options="!check" # Most tests fail
url="https://github.com/01org/libva-utils"
arch="all"
license="MIT"
makedepends="
	meson
	libva-dev
	libdrm-dev
	wayland-dev
	"
source="https://github.com/01org/libva-utils/archive/$pkgver/libva-utils-$pkgver.tar.gz"

build() {
	abuild-meson \
		-Ddrm=true \
		-Dx11=true \
		-Dwayland=true \
		-Dtests=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
90cfa83fb7443fc90558c148c740c9c272796197fba49ff0179af94c40e97c830fc26c534e9a74fa58f597075f9ba68b477aabc784148c14dc09bde07f23cdeb  libva-utils-2.15.0.tar.gz
"
